package org.pucc.bean

import scala.beans.BeanProperty

class ImportConfig {
  @BeanProperty var id: Int = id;
  @BeanProperty var sourceType: Int = 2; //
  @BeanProperty var sourceUrl: String = "192.168.0.54"; //
  @BeanProperty var sourcePort: Int = 1433; //
  @BeanProperty var sourceName: String = "sa"; //
  @BeanProperty var sourcePw: String = "cdgl@123"; //

  @BeanProperty var sourceDatabase: String = "test"; // 源数据库
  @BeanProperty var sourceSchema: String = "dbo";
  @BeanProperty var sourceTableName: String = "myuser"; // 源数据表名
  @BeanProperty var sourceFields: String = "`id` BIGINT PRIMARY KEY NOT ENFORCED,`name` STRING,`sex` STRING ,`addr` STRING"; // 源数据字段数据
  @BeanProperty var sinkType: Int = 1; // x
  @BeanProperty var sinkDatabase: String = "hudi"; // 目标数据库
  @BeanProperty var sinkTableName: String = "test"; // 目标数据表名
  @BeanProperty var sinkFields: String = "`id` BIGINT PRIMARY KEY NOT ENFORCED,`name` STRING,`sex` STRING ,`addr` STRING"; // 目标数据字段数据
  @BeanProperty var insertFields: String = "`id`,`name` ,`sex` ,`addr`"; // 插入语句 --- 需要指定分区字段
  @BeanProperty var isPartition: Boolean = false; //  ---是否分区


}




